<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/12/17
 * Time: 10:55
 */
namespace Wap\Controller;
class MsgController extends CommonController
{
    public function _initialize()
    {
        parent::_initialize();
        $this->is_login ();
        $this->action = strtolower(ACTION_NAME);
        $this->title = '我的消息';
    }
    public function index (){
        $msgs = M ('userMessage')->where ('user_id='.session('userInfo.id'))->select ();

        $this->assign ('msgs', $msgs);
        $this->display ();
    }
    public function detail (){

        $this->display ();
    }
}